// -----------------------------------------------------------------------
//  <copyright file="ResourceByAuthRoleIdSpec.cs" company="LiuliuSoft">
//      Copyright (c) 2022-2025 DaprPlus. All rights reserved.
//  </copyright>
//  <site>https://dapr.plus</site>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2025/1/4 20:54</last-date>
// -----------------------------------------------------------------------

using DaprPlus.Authorization.Domain.Entities;

namespace DaprPlus.Authorization.Domain.Specs;

public class ResourceByAuthRoleIdSpec(long roleId)
    : SpecificationBase<Resource>(m => m.RoleResources.Any(n => n.RoleId == roleId))
{ }
